Generally you only need to work around bugs in one specific app, so we
don't want to affect the applications that application will start.
Thus we unset GDK_NATIVE_WINDOWS after reading it.
}
#endif /* G_ENABLE_DEBUG */
- if (getenv("GDK_NATIVE_WINDOWS"))
- _gdk_native_windows = TRUE;
+ if (getenv ("GDK_NATIVE_WINDOWS"))
+ {
+ _gdk_native_windows = TRUE;
+ /* Ensure that this is not propagated
+ to spawned applications */
+ g_unsetenv ("GDK_NATIVE_WINDOWS");
+ }
g_type_init ();